//
//  TestProblem179.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/27.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem179: XCTestCase {

    var problem = Problem179()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem179_Case1() throws {
        XCTAssertEqual(problem.largestNumber([10,2]), "210")
    }
    
    func testProblem179_Case2() throws {
        XCTAssertEqual(problem.largestNumber([3,30,34,5,9]), "9534330")
    }
    
    func testProblem179_Case3() throws {
        XCTAssertEqual(problem.largestNumber([1000000000, 1000000000]), "10000000001000000000")
    }
    
    func testProblem179_Case4() throws {
        XCTAssertEqual(problem.largestNumber([0, 0]), "0")
    }
    
}
